package com.yoshino.composite;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yoshino
 **/
public class Department extends OrganizationComponent{

    public Department(String name, String des) {
        super(name, des);
    }

    //add,remove就不用写了，因为他是叶子节点

    @Override
    protected void print() {
        System.out.println(getName());
    }
}
